package com.clkj.xiuzheng.service;

import com.clkj.xiuzheng.pojo.Customer;
import com.clkj.xiuzheng.pojo.CustomerVisit;
import com.clkj.xiuzheng.pojo.User;
import com.github.pagehelper.PageInfo;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @author yawang
 * @create 2024/04/18 11:49:25
 **/
public interface CustomerService {

    void addCustomer(Customer customer, HttpServletRequest request);

    List<Customer> lisUserCustomer(Integer userId);

    void addVisit(CustomerVisit visit);

    List<CustomerVisit> listCustomerVisit(Integer customerId);

    List<CustomerVisit> listCustomerVisitBySeven(Integer userId);

    PageInfo getVisitUserByName(Integer pageSize, Integer pageNum, String userName);

    Map userLogin(String userTel);

    User login(String userTel);
}
